<template>
    <!-- 前台导航条 -->
    <div class="bread">
        <div>
            <el-breadcrumb separator="/">
                <el-breadcrumb-item v-for="(item) in breadcrumbList" :key="item.path" :to="{ path: item.path }">
                    {{ item.meta.title }}
                </el-breadcrumb-item>
            </el-breadcrumb>
        </div>
    </div>
</template>
<script>
export default {
    data() {
        return {

        }
    },
    computed: {
        breadcrumbList() {
            return this.$route.matched
        }
    },
    created() {
        console.log(this.$route)

    },
    methods: {

    },
    watch: {

    },
}
</script>
<style lang="less" scoped>
.bread {

    background-color: white;
}

.el-breadcrumb {
    height: 35px;
    line-height: 35px;
    color: white;
    font-size: 15px;
    font-weight: 200;
    padding-left: 20px;
    box-shadow: rgb(0 0 0 / 10%) 0px 1px 5px;

    a:last-child {
        color: white;
    }
}
</style>